import { Injectable } from '@nestjs/common';
import { Cron } from '@nestjs/schedule';
import { WxService } from 'src/wx/wx.service';

@Injectable()
export class ScheduleTaskService {
  @Cron('* 10 * * * *')
  async refreshSesstionKey() {
    const wxService = new WxService();
    await wxService.updateSesstionToken();
  }
}
